﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Newtonsoft.Json;

namespace ShelSystemViewer
{
    internal enum Status
    {
        Inactive,       // 0 
        Good,           // 1
        Warning,        // 2
        Emergency       // 3
    }

    [JsonObject(MemberSerialization.OptIn)]
    internal class Statistics
    {
        [JsonProperty("acceleration")]
        internal Decimal Severity;

        [JsonProperty("hits")]
        internal Int32 TotalHitCount;

        [JsonProperty("temperature")]
        internal Decimal Temperature;

        [JsonProperty("humidity")]
        internal Decimal Humidity;

        [JsonProperty("date")]
        internal DateTime DataDateTime;

        [JsonProperty("id")]
        internal int DataId;

        [JsonProperty("status")]
        internal Status PlayerStatus;

        internal bool IsValid;

        private readonly int PropertyNum = 6;

        [JsonConstructor]
        internal Statistics()
        {
        }
    }
}
